package com.x.gzcrm.service;


import com.x.gzcrm.model.PageResult;
import com.x.gzcrm.model.User;

/**
 * 课程分类的service
 */
public interface IUserService {
    public User findByUsername(String username);

    /**
     * 返回一页的数据
     * @param condition
     * @param page
     * @param pageSize
     * @return
     */
    public PageResult<User> findPageResult(User condition, int page, int pageSize);

    public void save(User user, Integer[] roleIds);

    public User findUserAndRolesByUserId(Integer userId);
}
